package marcus.spring.controller;

import java.util.Date;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class HelloWorldController {

	@RequestMapping("/hello")
	public ModelAndView helloWorld(@RequestParam("thing") String thing) {

		String message = "Hello World, Spring 3.0!";
		Date d = new Date();
		return new ModelAndView("hello", "message", d);
	}
}